package org.example.chenniyrpcspringbootprovider;

import PO.User;
import Service.UserService;
import org.example.chenniyrpcspingbootstarter.annotation.RpcService;
import org.springframework.stereotype.Service;

@Service
@RpcService
public class UserServiceImpl implements UserService {
    public User getUser(User user) {
        user.setName("小王");
        System.out.println("用户名：" + user.getName());
        return user;
    }
}
